<include file="public@header"/>
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInUp js-check-wrap">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>Pool记录</h5>
                        <div class="ibox-tools">
                            <a href="#" class="btn btn-primary btn-xs active">Pool记录</a>
                        </div>
                    </div>
<div class="ibox-content">
    <form class="well form-inline margin-top-20" method="post" action="{:url('pool/index')}">
        用户ID：
        <input class="form-control" type="text" name="user_id" style="width: 200px;" value="{:input('request.user_id')}"
                placeholder="请输入用户ID,如:800001">   

        Pool类型：
        <select class="form-control"  name="type" >
                <option value="">--------- </option>
            <volist name="type_sql" id="vo">
                <option value="{$vo}" <eq name="vo" value=":input('request.type')">selected </eq> >{$type[$vo]}</option>
            </volist>
        </select>
        
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="{:url('pool/index')}">清空</a>


        <br>
        <br>
        <span>月度池余额:{$pool_1_balance}</span>         <a class="btn btn-danger" href="{:url('pool/pool1_edit')}">分红</a>

        <br>
        <br>
        <span>年度池余额:{$pool_2_balance}</span>  <a class="btn btn-danger" href="{:url('pool/pool2_edit')}">分红</a>
    </form>

        <table class="table table-hover" id="menus-table">
            <thead>
                <tr>
                    <th width="60">ID</th>
                    <th width="100">用户ID</th>
                    <th>用户</th>
                    <th>Pool类型</th>   
                    <th>数量</th>
                    <th>操作类型</th>
                    <th>操作后数量</th>
                    <th>备注</th>     
                    <th>时间</th>                                
                </tr>
            </thead>
            <tbody>
                <eq name="datas" value="">
                        <tr> 
                            <td colspan="5" style="text-align: center">暂无数据</td>
                        </tr>
                <else />
                    <foreach name="datas" item="vo">
                        <tr>
                            <td>{$vo.id} </td>
                            <td>{$vo.uid} </td>
                            <td>{$vo.uname} </td>
                            <td>{$type[$vo.pool_type]}</td>
                            <td>{$vo.amount}</td>
                            <td>{$vo.flag}</td>
                            <td>{$vo.amount_after}</td>
                            <td>{$vo.memo}</td>
                            <td>{$vo.ctime|date="Y-m-d H:i",###}</td> 
                        </tr>
                    </foreach>
                </eq>
            </tbody>
        </table>
    <div class="pagination">
            <div>
                当前共有数据 <span style="color:blue;font-weight:bold">{$num}</span> 条
            </div>
            {$page|default=''}
        
    </div>

    <div class="modal" id="createFileMModal" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
        <div class="modal-dialog" role="document">
          <div class="modal-content">
            <div class="modal-header">
              <h5 class="modal-title" id="createFileTitle">创建文件</h5>
              <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                <span aria-hidden="true">&times;</span>
              </button>
            </div>
            <div class="modal-body">
              <form>
                <div class="form-group">
                  <label for="fileName" class="col-form-label">文件名</label>
                  <input type="text" autofocus class="form-control" id="fileName">
                </div>
              </form>
            </div>
            <div class="modal-footer">
              <button type="button" class="btn btn-primary" id="createFileSureBut">确定</button>
            </div>
          </div>
        </div>
      </div>

</div>

                    </div>
                </div>
        </div>
    </div>
<script src="__STATIC__/js/admin.js"></script>

</body>
</html>